/*
 * Copyright (c) 2025, 大连理工大学 (Dalian University of Technology)
 *
 * Licensed under the Mulan PSL v2.
 * You can use this file according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of the License at
 *
 *     http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. SEE THE MULAN PSL v2
 * FOR MORE DETAILS.
 */

/*
 * @Author: qiulin_JXGM ql1746365080@gmail.com
 * @Date: 2024-09-03 14:00:02
 * @LastEditors: wxc superjava@qq.com
 * @LastEditTime: 2024-09-29 13:13:47
 * @FilePath: /SGFEM/DBManager/DBManager/Service/Input/Property/PBRSECTService.h"
 */

#pragma once
#include "DBManager/Common/ServiceMacro.h"
#include "DBManager/IRepository/Input/Property/IPBRSECTRepository.h"
#include "DBManager/IService/Input/Property/IPBRSECTService.h"

SG_DBMANAGER_NAMESPACE_OPEN
using IRepos = IPBRSECTRepository;
class DBManager_DECLSPEC PBRSECTService : public IPBRSECTService
{
  public:
    explicit PBRSECTService (DBServiceFactory* const dbServiceFactory, IPBRSECTRepository& repos);
    ~PBRSECTService () override;

    FUNCTION_DEFAULT (ServiceDataType);

    virtual SG::DataStructure::Common::Status ConvertToBeamSectionArbitrary (SG::DataStructure::Common::Id id, SG::DataStructure::FEM::BeamSectionArbitrary _OUT & beamSection) override;
  private:
    IRepos& m_repository;
    DBServiceFactory* const m_dbServiceFactory;  /// 当前用到的数据库
};

SG_DBMANAGER_NAMESPACE_CLOSE
